
<form method="post" id="import_file_Form" name="editForm" enctype="multipart/form-data">
<table class="tableForm tableCss">
    <tr>
        <th style="width: 150px;">学校：</th>
        <td>
            <input class="easyui-combotree" style="width:100%" name="dep_id" id="dep_id_import" data-options="url:'admin/department/combotree',method:'get',required:true,onselect:on_change">
        </td>
    </tr>
    <tr>
        <th style="width: 150px;">班级：</th>
        <td>
            <input class="easyui-combobox"  style="width:100%" name="class_id" id="class_id_import" data-options="valueField:'id',textField:'class_name',required:true">
        </td>
    </tr>
    <tr>
        <th style="width: 150px;">文件：</th>
        <td>
            <input class="easyui-filebox" style="width:100%" name="file_name" id="file_name" data-options="prompt:'选择文件',buttonText:'选择'">
        </td>
    </tr>
</table>
</form>

<script>
    function on_change(){
        var dep_id = $("#dep_id_import").combotree("getValue");
        $("#class_id_import").combobox("reload",'admin/class/load_class_combobox?dep_id='+dep_id);
    }
</script>